home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
0769B.ZIP
/
BASCSTAT.DOC
< prev
next >
Wrap
Text File
|
1987-03-01
|
4KB
|
122 lines
Basic Statistics Compilation System
BASCSTAT.PRG
BASCSTAT.XTR
A Statistical Compilation System used for tabulation of dBase databases;
Requires dBase III+ V1.0 or higher
BASCSTAT is a series of programs which take the data in your
database and tabulate them...it is designed to be used as a
compiler for such things as survey information, etc. The output
is a page per field tabulated, with information such as file name,
field name, field type, average, mode, median, and standard
deviation. The tabulation is presented in a format such that the
number of each type is listed with it's relative frequency. The
program also tabulates the amount of invalid data, and displays
an adjusted frequency and cumulative frequency based upon the
number of valid responses.
How to use it:
1) Activate dBase, and get to the dot prompt.
2) CLEAR ALL
3) USE (the name of the database to tabulate)
4) SET PATH TO A:
5) Place the BASCSTAT disk in drive A:; make sure your printer is
ready to go.
6) DO BASCSTAT
7) and that's all there is to it.
Restrictions:
BASCSTAT currently only tabulates up to 6 different options;
the good news is that it can be entered in any of several
different formats.
If you are using a "CHARACTER" type field in your
database, and you are using letters for responses,
you may use the letters "a" through "f" or "A"
through "F", as the program is not case sensitive.
If you are using a "CHARACTER" type field in your
database, and you are using numbers for responses,
you may use the numbers "1" through "6".
If you are using a "NUMERIC" type field in your
database, you may use the numbers 1 through 6.
ALL OTHER FIELD TYPES ARE IGNORED. IN ADDITION, ANY DATA WHICH
DOES NOT FALL INTO THE BOUNDARIES OF 1-6/"a"-"f"/"A"-"F" IS
CONSIDERED TO BE INVALID DATA.
BASCSTAT tabulates all of the data in a database which it
considers to be "tabulatable." That is, BASCSTAT goes through an
entire database FIELD by FIELD, tabulating as it goes. The field
types can be intermixed, numeric or character, it does not matter.
ALL NUMERIC AND CHARACTER FIELDS ARE TABULATED. If you have a
field you do not wish tabulated, MODIFY STRUCTURE and change the
last character in the field name to an underscore (_) and BASCSTAT
will ignore the field and go on to the next one.
How it works: (Non-Technical)
The program takes the following steps:
1) Copies the structure of your database to another file, so
that it can be read by the program; this is so that the field
names and types can be determined.
2) GOes to the top of your database.
3) Checks for an underscore as the last character, if it is,
it goes to step 15.
4) Checks the field type. If not a "C" or "N", it goes to
step 15.
5) Determines the highest possible value for the current
field. If there are only "D" possible responses, then the
program only counts the data 4 times.
6) Counts the data the number of times determined above. The
program displays which counting step it is on as it
continues.
7) Begins its printing process, printing the filename, field
type, and field name that it is tabulating (from step 1).
8) Prints the options, with corresponding data and
percentages.
9) Prints the number of valid and invalid cases.
10) Calculates and prints the average (Sum of the numbers
divided by the number of valid cases)
11) Calculates and prints the mode (The option with the most
responses)
12) Calculates and prints the median (The middle number of
the sorted list of data)
13) Calculates and prints the Standard deviation (Look it up)
14) Ejects the page.
15) Skips to the next field. If there aren't any, then it
ends.
16) Goes back to step 3.
This program has been documented with SNAP! version 1.72, and all
other related files are included on the BASCSTAT disk. This
includes a cross-reference and a procedure list table.